package com.cj.peiwan.server.other;

import org.wei.db.mongo.MongoDbSetting;

import com.cj.peiwan.server.dao.ABaseDao;

public class PWSetting {
    private static boolean isTest = true;

    public static void setTest(boolean isTest) {
        PWSetting.isTest = isTest;
        ABaseDao.isTest = isTest;
        MongoDbSetting.isTest = isTest;
    }

    public static boolean isTest() {
        return isTest;
    }

    public static String getImgLinkUrl() {
        if (isTest) {
            return "http://chuangjike-img.b0.upaiyun.com";
        }
        return "http://chuangjike-img-real.b0.upaiyun.com";
    }

    public static String getImgBuketName() {
        if (isTest) {
            return "chuangjike-img";
        }
        return "chuangjike-img-real";
    }

    public static String getFileLinkUrl() {
        if (isTest) {
            return "http://chuangjike-file.b0.upaiyun.com";
        }
        return "http://chuangjike-file-real.b0.upaiyun.com";
    }

    public static String getFileBuketName() {
        if (isTest) {
            return "chuangjike-file";
        }
        return "chuangjike-file-real";
    }

    public static String getOperator() {
        return "liuwei";
    }

    public static String getOperatorSecret() {
        return "bihumanbu123A1!";
    }
}
